<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>音乐榜</title>
    <link rel="stylesheet" href="./css/reset.css" />
    <style>
      .music {
        width: 480px;
        height: 480px;
        margin: 60px auto;
        /* background-color: aqua; */
      }

      .music a {
        width: 480px;
        height: 480px;
        text-decoration: none;
        display: block;
        /* border: 1px solid #000; */
        /* 作为播放量的参考定位 */
        position: relative;
      }

      .music p.music-number {
        height: 35px;
        width: 197px;
        /* 从左到右 半透明黑到白最后消失 */
        background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0));
        position: absolute;
        top: 0;
        right: 0;
      }

      .music p.music-number span.icon-earphone {
        width: 35px;
        height: 35px;
        /* display: inline-block; */
        background: url(./images/earphone.png) no-repeat center;
        float: right;
        background-size: 20px;
        margin-right: 8px;
      }

      .music p.music-number span.music-number-text {
        height: 35px;
        /* display: inline-block; */
        float: right;
        font-family: Microsoft YaHei;
        font-weight: 400;
        font-size: 14px;
        color: #fefefe;
        line-height: 35px;
        padding-right: 10px;
      }

      .music .music-text {
        width: 480px;
        height: 80px;
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.5);
      }

      .music .music-text h3 {
        font-family: Microsoft YaHei;
        font-weight: 400;
        font-size: 19px;
        color: #fefefe;
        padding: 15px 0 10px 8px;
      }

      .music .music-text p.music-author {
        font-family: Microsoft YaHei;
        font-weight: 400;
        font-size: 15px;
        color: #fefefe;
        padding: 0 0 18px 10px;
      }

      .music .musk {
        background-color: rgba(0, 0, 0, 0.5);
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        display: none;
      }

      .music .icon-play {
        height: 36px;
        width: 36px;
        position: absolute;
        right: 24px;
        bottom: 26px;
        background: url(./images/play-button.png) no-repeat center;
        display: none;
      }

      .music a:hover .musk {
        display: block;
      }

      .music a:hover .icon-play {
        display: block;
      }
    </style>
  </head>
  <body>
    <div class="music">
      <a href="#" title="music">
        <img src="./images/kugou-img1.png" alt="music_image" />
        <!-- 左上角渐变色音乐播放量 -->
        <p class="music-number">
          <!-- 浮动后注意位置顺序 -->
          <span class="music-number-text">679.9万</span>
          <span class="icon-earphone"></span>
        </p>
        <div class="music-text">
          <h3>乡村之旅：安静惬意.与自然同在</h3>
          <p class="music-author">蔓若</p>
        </div>
        <div class="musk"></div>
        <div class="icon-play"></div>
      </a>
    </div>
  </body>
</html>
